﻿using System.ComponentModel.DataAnnotations;
using MongoDB.Bson.Serialization.Attributes;

namespace GamFi.Admin.API.Domain.Entities;

/// <summary>
/// Сущность сообщений
/// </summary>
public class Message
{
    /// <summary>
    /// ИД сообщения
    /// </summary>
    [BsonId]
    [MaxLength(16)]
    public string Id { get; set; } = Guid.NewGuid().ToString();

    /// <summary>
    /// Сообщение
    /// </summary>
    [MaxLength(500)]
    public string TextMessage { get; set; } = default!;

    /// <summary>
    /// ИД создателя
    /// </summary>
    [MaxLength(16)]
    public string CreatedBy { get; set; } = default!;

    /// <summary>
    /// Дата создания
    /// </summary>
    public DateTime CreatedDate { get; set; }
}